xen.git
19 years agoFix perfc=y build.
kfraser@localhost.localdomain [Thu, 25 Jan 2007 18:23:48 +0000 (18:23 +0000)]
Fix perfc=y build.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agohvm: Define a global I/O access bitmap, allowing direct access to port 0x80.
kfraser@localhost.localdomain [Thu, 25 Jan 2007 18:20:58 +0000 (18:20 +0000)]
hvm: Define a global I/O access bitmap, allowing direct access to port 0x80.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Fix bad patch merge for XendMonitor
Alastair Tse [Thu, 25 Jan 2007 17:00:18 +0000 (17:00 +0000)]
[XEND] Fix bad patch merge for XendMonitor

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agonetfront: Better fix for netfront_tx_slot_available().
kfraser@localhost.localdomain [Thu, 25 Jan 2007 16:58:21 +0000 (16:58 +0000)]
netfront: Better fix for netfront_tx_slot_available().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoemulator: Emulate IN/OUT/INS/OUTS. Fix CLTS.
kfraser@localhost.localdomain [Thu, 25 Jan 2007 16:32:19 +0000 (16:32 +0000)]
emulator: Emulate IN/OUT/INS/OUTS. Fix CLTS.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoemulator: Start filling in gaps for privileged instructions.
kfraser@localhost.localdomain [Thu, 25 Jan 2007 15:25:06 +0000 (15:25 +0000)]
emulator: Start filling in gaps for privileged instructions.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Ignore socket.shutdown() exceptions
Alastair Tse [Thu, 25 Jan 2007 14:52:36 +0000 (14:52 +0000)]
[XEND] Ignore socket.shutdown() exceptions

Add further comments about why that shutdown() exists.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago32-on-64: Small fixes.
kfraser@localhost.localdomain [Thu, 25 Jan 2007 13:05:15 +0000 (13:05 +0000)]
32-on-64: Small fixes.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoemulator: Add new hook functions for load/store privileged state.
kfraser@localhost.localdomain [Thu, 25 Jan 2007 13:02:03 +0000 (13:02 +0000)]
emulator: Add new hook functions for load/store privileged state.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoDuring suspend, return immediately with a failure if the domain will
kfraser@localhost.localdomain [Thu, 25 Jan 2007 12:30:25 +0000 (12:30 +0000)]
During suspend, return immediately with a failure if the domain will
never suspend, instead of pointlessly retrying.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[HVM] Wake up APs immediately during restore.
kfraser@localhost.localdomain [Thu, 25 Jan 2007 12:28:47 +0000 (12:28 +0000)]
[HVM] Wake up APs immediately during restore.
From: Edwin Zhai <edwin.zhai@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agonetfront: Check availability of grant references in start_xmit().
kfraser@localhost.localdomain [Thu, 25 Jan 2007 12:24:43 +0000 (12:24 +0000)]
netfront: Check availability of grant references in start_xmit().
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
19 years ago[XEND] Allow TCP XMLRPC address:port to be configured, if enabled.
Alastair Tse [Thu, 25 Jan 2007 11:58:00 +0000 (11:58 +0000)]
[XEND] Allow TCP XMLRPC address:port to be configured, if enabled.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoHave the sxp parsing cope when the cpus field is a list, which can happen
Ewan Mellor [Thu, 25 Jan 2007 10:34:17 +0000 (10:34 +0000)]
Have the sxp parsing cope when the cpus field is a list, which can happen
after a reboot.

From Daniele Palumbo <daniele@retaggio.net>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature
Alastair Tse [Thu, 25 Jan 2007 10:29:33 +0000 (10:29 +0000)]
[XEND] Remove usage of set() in XendMonitor as it is a py2.4+ feature

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[HVM][SVM] Add save/restore support.
kfraser@localhost.localdomain [Wed, 24 Jan 2007 18:30:07 +0000 (18:30 +0000)]
[HVM][SVM] Add save/restore support.
From: Mats Petersson <Mats.Petersson@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agobimodal xenfb daemon: Fixes and cleanups.
kfraser@localhost.localdomain [Wed, 24 Jan 2007 18:23:23 +0000 (18:23 +0000)]
bimodal xenfb daemon: Fixes and cleanups.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago32-on-64: All argument registers must be zero extended to 64 bits
kfraser@localhost.localdomain [Wed, 24 Jan 2007 18:20:24 +0000 (18:20 +0000)]
32-on-64: All argument registers must be zero extended to 64 bits
(%rdx was missed).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Fix typo in XendNode
Alastair Tse [Wed, 24 Jan 2007 18:06:14 +0000 (18:06 +0000)]
[XEND] Fix typo in XendNode

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoFix device reordering that occurs when the config gets read into dictionaries.
Ewan Mellor [Wed, 24 Jan 2007 16:48:41 +0000 (16:48 +0000)]
Fix device reordering that occurs when the config gets read into dictionaries.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMake domctl/sysctl interfaces 32-/64-bit invariant.
kfraser@localhost.localdomain [Wed, 24 Jan 2007 16:33:19 +0000 (16:33 +0000)]
Make domctl/sysctl interfaces 32-/64-bit invariant.
This kills off a fair amount of unpleasant CONFIG_COMPAT shimming and
avoids needing to keep the compat paths in sync as these interfaces
continue to develop.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Add debug class to Xen API plus non-standard debug.wait().
Alastair Tse [Wed, 24 Jan 2007 15:59:09 +0000 (15:59 +0000)]
[XEND] Add debug class to Xen API plus non-standard debug.wait().

debug.wait(seconds) will just do a time.sleep() so the task progress
support can be tested.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Move decorate() to XendAPI.__new__ and have a static flag to
Alastair Tse [Wed, 24 Jan 2007 15:57:10 +0000 (15:57 +0000)]
[XEND] Move decorate() to XendAPI.__new__ and have a static flag to
ensure it only runs at instantiation time, and only once per Xend
instance. Otherwise, decorate() runs on every invocation of
/usr/sbin/xend, even if it is xend stop.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Make test script attempt to login with blank credentials
Alastair Tse [Wed, 24 Jan 2007 15:52:26 +0000 (15:52 +0000)]
[XENAPI] Make test script attempt to login with blank credentials
before prompting for passwords.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Cleanup old domains in statistics monitor.
Alastair Tse [Wed, 24 Jan 2007 15:50:58 +0000 (15:50 +0000)]
[XEND] Cleanup old domains in statistics monitor.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Add vif-list to xapi.py script
Alastair Tse [Wed, 24 Jan 2007 15:50:02 +0000 (15:50 +0000)]
[XENAPI] Add vif-list to xapi.py script

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Output exception to log files if XendAPI fails to instantiate.
Alastair Tse [Wed, 24 Jan 2007 15:49:32 +0000 (15:49 +0000)]
[XEND] Output exception to log files if XendAPI fails to instantiate.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Update test scripts to move from VBD.image to creating VDI's
Alastair Tse [Wed, 24 Jan 2007 15:48:58 +0000 (15:48 +0000)]
[XENAPI] Update test scripts to move from VBD.image to creating VDI's
with the uri attribute.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Add support for multiple storage repositories.
Alastair Tse [Wed, 24 Jan 2007 15:47:31 +0000 (15:47 +0000)]
[XEND] Add support for multiple storage repositories.

Splits XendStorageRepository into a helper class and
XendQCowStorageRepo as the QCoW File backed repository. This gives us
the opportunity to introduce a pseudo storage repository to represent
the old way of specifying block devices. This is the
XendLocalStorageRepo.

Note that this still introduces a non-Xen API 'uri' attribute to VDIs
in order to support querying VDIs for their actual location relative
to the Xen host.

The QCoW backed repository is now named QCoW, and the pseudo-SR is
named Local.

This removes the 'image' attribute backwards-compat hack in VBDs in
the Xen API.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Add missing Xen API methods
Alastair Tse [Wed, 24 Jan 2007 14:25:21 +0000 (14:25 +0000)]
[XEND] Add missing Xen API methods

* Added session.get_all, task.get_by_name_label,
  host.get_by_name_label, VM.add_to_otherConfig,
  VM.remove_from_otherConfig

* Added implementations for VM.get_VCPUs_policy,
  VM.get_platform_std_vga, VM.get_vm_by_uuid,
  VM.get_platform_localtime, VM.get_platform_clock_offset,
  VM.get_platform_enable_audio, VM.get_platform_keymap,
  VM.get_otherConfig, VM.set_actions_after_shutdown,
  VM.set_actions_after_reboot, VM.set_actions_after_suspend,
  VM.set_actions_after_crash, VM.set_platform_std_VGA,
  VM.set_platform_serial, VM.set_platform_keymap,
  VM.set_platform_localtime, VM.set_platform_clock_offset,
  VM.set_platform_enable_audio, VM.set_otherConfig, VBD.destroy,
  VBD.get_io_read_kbs, VBD.get_io_write_kbs, VBD.get_all, VIF.destroy,
  VIF.get_VM, VIF.get_name, VIF.get_MTU, VIF.get_MAC, VIF.get_type,
  VIF.get_device, VIF.get_io_read_kbs, VIF.get_io_write_kbs,
  VIF.get_all, VTPM.destroy, VTPM.get_all

* Save devid of a device on creation in XendDomainInfo

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Make sure UUID in state store are not stored as unicode
Alastair Tse [Wed, 24 Jan 2007 13:58:06 +0000 (13:58 +0000)]
[XEND] Make sure UUID in state store are not stored as unicode
objects.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Prevent invalid arguments for destroy event channels.
Alastair Tse [Wed, 24 Jan 2007 13:54:37 +0000 (13:54 +0000)]
[XEND] Prevent invalid arguments for destroy event channels.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoTest scripts for Xen API updated to support Async support
Alastair Tse [Wed, 24 Jan 2007 13:49:25 +0000 (13:49 +0000)]
Test scripts for Xen API updated to support Async support

19 years ago[XEND] Add Task support in Xen API implementation.
Alastair Tse [Wed, 24 Jan 2007 13:26:26 +0000 (13:26 +0000)]
[XEND] Add Task support in Xen API implementation.

Added progress tracking to some common methods like VM.start so the
progress during async invocation.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[linux] remove gratuitous differences with plain linux.
Christian Limpach [Wed, 24 Jan 2007 14:36:03 +0000 (14:36 +0000)]
[linux] remove gratuitous differences with plain linux.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years ago[XEND] Add missing XendMonitor.py
Alastair Tse [Wed, 24 Jan 2007 12:26:19 +0000 (12:26 +0000)]
[XEND] Add missing XendMonitor.py

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Add simple VCPUs, VBDs, VIFs statistics monitoring
Alastair Tse [Wed, 24 Jan 2007 12:09:41 +0000 (12:09 +0000)]
[XEND] Add simple VCPUs, VBDs, VIFs statistics monitoring

Keep track of xentop like statistics to expose through the Xen API

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Strip suffix from device name and add support for 'VBD.type'
Alastair Tse [Wed, 24 Jan 2007 12:07:54 +0000 (12:07 +0000)]
[XEND] Strip suffix from device name and add support for 'VBD.type'

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[linux] Disable GENERIC_TIME until we have a xen clocksource.
Christian Limpach [Wed, 24 Jan 2007 12:02:56 +0000 (12:02 +0000)]
[linux] Disable GENERIC_TIME until we have a xen clocksource.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoFix crash if some secondary CPUs cannot be initialised.
kfraser@localhost.localdomain [Wed, 24 Jan 2007 11:04:22 +0000 (11:04 +0000)]
Fix crash if some secondary CPUs cannot be initialised.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[QEMU] Clear TD status field explicitly when it's fetched.
kfraser@localhost.localdomain [Wed, 24 Jan 2007 10:44:32 +0000 (10:44 +0000)]
[QEMU] Clear TD status field explicitly when it's fetched.

In current Qemu-dm, UHC will set some status bits of TD in status
updating stage, but never process the status bit if relevant condition
does not occur, leaving it as it is. When a TD is fetched with some
status bits are set to 1, it will return to Guest OS with these bits
set to 1 even this TD is executed successfully. Some Windows OS,
e.g. Windows 2000, will check status bits of TD in UHC interrupt
routine, treat it as a unsuccessful one if some status bits are set to
1 and discard the data. Other Windows OS just check USBSTS of UHC,
ignoring status field of TD unless the value of USBSTS indicates
occurrence of error.

With this patch, USB mouse/tablet in Windows 2000 works correctly.

Signed-off-by: Xinmei Huang <xinmei.huang@intel.com>
19 years agobimodal blkback: Support multiple ring protocols.
kfraser@localhost.localdomain [Wed, 24 Jan 2007 10:38:17 +0000 (10:38 +0000)]
bimodal blkback: Support multiple ring protocols.

This is needed for 32-on-64 support.  Right now there are three
protocols: native, x86_32 and x86_64.  If needed it can be extended.

Interface changes (io/blkif.h)
 * Define the x86_32 and x86_64 structs additionally to the native
   version.
 * Add helper functions to convert them requests to native.

Backend changes:
 * Look at the "protocol" name of the frontend and switch ring
   handling accordingly.  If the protocol node isn't present it
   assumes native protocol.
 * As the request struct is copied anyway before being processed (for
   security reasons) it is converted to native at that point so most
   backend code doesn't need to know what the frontend speaks.
 * In case of blktap this is completely transparent to userspace, the
   kernel/userspace ring is always native no matter what the frontend
   speaks.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years agoFix error message in network-bridge script.
kfraser@localhost.localdomain [Wed, 24 Jan 2007 10:22:06 +0000 (10:22 +0000)]
Fix error message in network-bridge script.
From: Luke Crawford <lsc@prgmr.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolibxenguest: Fix xc_resume() build for non-x86.
kfraser@localhost.localdomain [Wed, 24 Jan 2007 10:18:44 +0000 (10:18 +0000)]
libxenguest: Fix xc_resume() build for non-x86.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd BSD-style license to top of hvm_op.h public header file.
kfraser@localhost.localdomain [Wed, 24 Jan 2007 10:15:34 +0000 (10:15 +0000)]
Add BSD-style license to top of hvm_op.h public header file.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoClose save-after-restore race.
john.levon@sun.com [Wed, 24 Jan 2007 03:06:31 +0000 (19:06 -0800)]
Close save-after-restore race.

Make xc_linux_save() wait for the frame_list_list MFN to be updated by the
domain before trying to use it. Make Linux set the top-level MFN /after/
updating the other MFN lists.

Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[LIBXC] Provide weak stub default implementations of xc_hvm_save() and
kfraser@localhost.localdomain [Tue, 23 Jan 2007 15:58:05 +0000 (15:58 +0000)]
[LIBXC] Provide weak stub default implementations of xc_hvm_save() and
xc_hvm_restore() for architectures with no full implementation.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Make resend_irq_on_evtchn() non-static for ia64 use.
kfraser@localhost.localdomain [Tue, 23 Jan 2007 15:54:12 +0000 (15:54 +0000)]
linux: Make resend_irq_on_evtchn() non-static for ia64 use.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] fix save/restore on 64b HV
kfraser@localhost.localdomain [Tue, 23 Jan 2007 15:26:17 +0000 (15:26 +0000)]
[HVM] fix save/restore on 64b HV

Enable hvm_ctxt ops for compat mode to fix HVM save/restore on 64b HV.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
19 years agox86: flush_tlb_mask() should take into account specified VA to flush
kfraser@localhost.localdomain [Tue, 23 Jan 2007 15:14:45 +0000 (15:14 +0000)]
x86: flush_tlb_mask() should take into account specified VA to flush
on local processor.
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
19 years agobimodal pvfb backend: Deal with both 32 and 64 bit frontends.
kfraser@localhost.localdomain [Tue, 23 Jan 2007 14:57:01 +0000 (14:57 +0000)]
bimodal pvfb backend: Deal with both 32 and 64 bit frontends.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years agobimodal blkfront: Create a new node "protocol" in xenstore, add the
kfraser@localhost.localdomain [Tue, 23 Jan 2007 14:48:42 +0000 (14:48 +0000)]
bimodal blkfront: Create a new node "protocol" in xenstore, add the
protocol name it speaks there.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years agobimodal: pvfb frontend
kfraser@localhost.localdomain [Tue, 23 Jan 2007 14:47:26 +0000 (14:47 +0000)]
bimodal: pvfb frontend

Create a new node "protocol" in xenstore, add the protocol name it
speaks there.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years agobimodal: header file with protocol names.
kfraser@localhost.localdomain [Tue, 23 Jan 2007 14:45:41 +0000 (14:45 +0000)]
bimodal: header file with protocol names.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years agolinux: Fix enable_irq() crash by removing a BUG_ON() assumption in our
kfraser@localhost.localdomain [Tue, 23 Jan 2007 13:39:20 +0000 (13:39 +0000)]
linux: Fix enable_irq() crash by removing a BUG_ON() assumption in our
event-channel retrigger() function. Also clean up bitmap usages.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XM-TEST] Allow building of ramdisk on x86_64
Alastair Tse [Tue, 23 Jan 2007 11:39:32 +0000 (11:39 +0000)]
[XM-TEST] Allow building of ramdisk on x86_64

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[LINUX] Force .data segment to be 4k aligned on i386
Ian Campbell [Tue, 23 Jan 2007 09:31:32 +0000 (09:31 +0000)]
[LINUX] Force .data segment to be 4k aligned on i386
by backporting git changeset c06cb8b1c4d25e5b4d7a2d7c2462619de1e0dbc4

This is required for kexec/kdump.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEND] Save model attribute for HVM VIFs
Alastair Tse [Mon, 22 Jan 2007 17:31:15 +0000 (17:31 +0000)]
[XEND] Save model attribute for HVM VIFs

This solves the problem of HVM VIFs forgetting their model config on
reboot.

http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=867

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Fix get_dev_property_by_uuid
Alastair Tse [Mon, 22 Jan 2007 17:23:53 +0000 (17:23 +0000)]
[XEND] Fix get_dev_property_by_uuid

This patch replaces calls to get_dev_property() by calls to
get_dev_property_by_uuid() in XenAPI.py and fixes the implementation
of get_dev_property_by_uuid.

I am adding a test case to the xapi grouptests to verify the fixes.
There's a FIXME note in the test case which should be looked at.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[PV-on-HVM] Make PV drivers on HVM kernels work on older kernels after
Ian Campbell [Mon, 22 Jan 2007 17:10:27 +0000 (17:10 +0000)]
[PV-on-HVM] Make PV drivers on HVM kernels work on older kernels after
update to 2.6.18.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoFix failure to localise xm by preventing cd from writing to stdout
kfraser@localhost.localdomain [Mon, 22 Jan 2007 17:07:16 +0000 (17:07 +0000)]
Fix failure to localise xm by preventing cd from writing to stdout
which gets incorrectly captured as a value for the bash for loop.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[PVFB] Set keyboard layout of PVFB from configuration file.
kfraser@localhost.localdomain [Mon, 22 Jan 2007 16:27:03 +0000 (16:27 +0000)]
[PVFB] Set keyboard layout of PVFB from configuration file.

For example:
keymap = "ja"

Default remains en-us.

Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Tomohiro Takahashi <takatom@tokyo.ssg.fujitsu.com>
Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
19 years ago[PVFB] Support keymap localisation.
kfraser@localhost.localdomain [Mon, 22 Jan 2007 16:26:00 +0000 (16:26 +0000)]
[PVFB] Support keymap localisation.

Conversion to the scan code uses QEMU's function.
Moreover, keyboard support for PVFB uses QEMU's keymaps.
Keyboard default layout is en-us.

Signed-off-by: Junko Ichino <ichino.junko@jp.fujitsu.com>
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Hirofumi Tsujimura <tsujimura.hirof@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoVTPM_TOOLS: Added support for QEMU to communicate with vTPM over UNIX
kfraser@localhost.localdomain [Mon, 22 Jan 2007 15:59:41 +0000 (15:59 +0000)]
VTPM_TOOLS: Added support for QEMU to communicate with vTPM over UNIX
socket for HVM guests.

Signed-off-by: Vinnie Scarlata <vincent.r.scarlata@intel.com>
19 years agoPut gdb version in a variable in gdbbuild script.
kfraser@localhost.localdomain [Mon, 22 Jan 2007 15:58:27 +0000 (15:58 +0000)]
Put gdb version in a variable in gdbbuild script.
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years agolinux/i386: widen physical address range
kfraser@localhost.localdomain [Mon, 22 Jan 2007 15:57:19 +0000 (15:57 +0000)]
linux/i386: widen physical address range

32on64 supports 168Gb for 32-bit guests, hence at least 38 bits must
be specified here. The foreign frame bit is MFN bit 31, so the maximum
valid value here would be 43.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agomerge
Ian Campbell [Mon, 22 Jan 2007 15:43:48 +0000 (15:43 +0000)]
merge

19 years agolinux/i386: relax highpte pinning/write-protecting
kfraser@localhost.localdomain [Mon, 22 Jan 2007 15:42:13 +0000 (15:42 +0000)]
linux/i386: relax highpte pinning/write-protecting
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] Consolidate multiple defintions of ELFNOTE_* accessor macros
Ian Campbell [Mon, 22 Jan 2007 15:40:12 +0000 (15:40 +0000)]
[XEN] Consolidate multiple defintions of ELFNOTE_* accessor macros

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] Fix native build.
Ian Campbell [Mon, 22 Jan 2007 15:31:27 +0000 (15:31 +0000)]
[LINUX] Fix native build.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Avoid void* arithmetic in kexec ELF note manipulations.
Ian Campbell [Mon, 22 Jan 2007 15:29:04 +0000 (15:29 +0000)]
[XEN] Avoid void* arithmetic in kexec ELF note manipulations.

From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoImplement clean return from save/restore failure (so that original
kfraser@localhost.localdomain [Mon, 22 Jan 2007 15:15:32 +0000 (15:15 +0000)]
Implement clean return from save/restore failure (so that original
domain can continue execution).
Signed-off-by: Andrei Petrov <andrei.petrov@xensource.com>
19 years ago[SVM] Remove ASID logic. Errata prevent this feature being used
kfraser@localhost.localdomain [Mon, 22 Jan 2007 14:13:26 +0000 (14:13 +0000)]
[SVM] Remove ASID logic. Errata prevent this feature being used
reliably in current SVM processor implementations.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRe-enable CONFIG_HOTPLUG_CPU by deafult for -xen? kernels.
Steven Hand [Mon, 22 Jan 2007 13:38:04 +0000 (13:38 +0000)]
Re-enable CONFIG_HOTPLUG_CPU by deafult for -xen? kernels.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years ago[PYGRUB] Plumb bootloader I/O through xenconsole.
Tim Deegan [Mon, 22 Jan 2007 11:49:14 +0000 (11:49 +0000)]
[PYGRUB] Plumb bootloader I/O through xenconsole.

 - xend forwards console traffic between the running bootloader and a pty
   which it writes to the store so the xenconsole client can see it.
 - the xenconsole client handles the domain's console pty changing.
 - xm create no longer runs the bootloader.
 - pygrub gets '-i' option to explicitly request an interactive session.
 - xend unlocks the domain list during bootloading so that "xm console"
   can see the domain and attach to its console pty.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[PYGRUB] Add python module for POSIX ptsname(2) function.
Tim Deegan [Mon, 22 Jan 2007 11:49:11 +0000 (11:49 +0000)]
[PYGRUB] Add python module for POSIX ptsname(2) function.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[PYGRUB] Don't redraw the interactive menu screen if it doesn't need it.
Tim Deegan [Mon, 22 Jan 2007 11:49:05 +0000 (11:49 +0000)]
[PYGRUB] Don't redraw the interactive menu screen if it doesn't need it.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoFix byte-to-long bitmap conversions.
kaf24@localhost.localdomain [Sun, 21 Jan 2007 17:10:58 +0000 (17:10 +0000)]
Fix byte-to-long bitmap conversions.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agolinux: Fix x86/64 build (which is failing on some systems).
kaf24@localhost.localdomain [Sun, 21 Jan 2007 16:29:18 +0000 (16:29 +0000)]
linux: Fix x86/64 build (which is failing on some systems).
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[LIBXC] Fix non-x86 build.
kaf24@localhost.localdomain [Sun, 21 Jan 2007 15:39:04 +0000 (15:39 +0000)]
[LIBXC] Fix non-x86 build.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoUnbreak 64bit build
Tim Deegan [Sat, 20 Jan 2007 14:33:43 +0000 (14:33 +0000)]
Unbreak 64bit build
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore cleanups 06: Let dom0 change domU's paging mode
Tim Deegan [Sat, 20 Jan 2007 11:40:52 +0000 (11:40 +0000)]
[HVM] Save/restore cleanups 06: Let dom0 change domU's paging mode

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoMerge
Tim Deegan [Sat, 20 Jan 2007 11:21:08 +0000 (11:21 +0000)]
Merge

19 years ago[HVM] Save/restore cleanups 05: save-format headers
Tim Deegan [Sat, 20 Jan 2007 11:17:42 +0000 (11:17 +0000)]
[HVM] Save/restore cleanups 05: save-format headers
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore cleanups 04: Move new domctls out of common code.
Tim Deegan [Sat, 20 Jan 2007 11:17:41 +0000 (11:17 +0000)]
[HVM] Save/restore cleanups 04: Move new domctls out of common code.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore cleanups 03: IRQ
Tim Deegan [Sat, 20 Jan 2007 11:17:40 +0000 (11:17 +0000)]
[HVM] Save/restore cleanups 03: IRQ
IRQ, PIC, IOAPIC and LAPIC
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore cleanups 02: VCPU
Tim Deegan [Sat, 20 Jan 2007 11:17:39 +0000 (11:17 +0000)]
[HVM] Save/restore cleanups 02: VCPU
Save/restore vcpu state therough the streaming interface
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Save/restore cleanups 01: PIT
Tim Deegan [Sat, 20 Jan 2007 11:17:38 +0000 (11:17 +0000)]
[HVM] Save/restore cleanups 01: PIT
Define public structure for the saved PIT data and use it instead
of a series of explicit loads and stores.
Don't save ephemeral Xen timer structs; rebuild them instead.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[XEN] Remove bogus include reference.
kaf24@localhost.localdomain [Fri, 19 Jan 2007 23:53:54 +0000 (23:53 +0000)]
[XEN] Remove bogus include reference.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LIBXC] Refactor xc_domain_resume() into its own source file.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 18:32:28 +0000 (18:32 +0000)]
[LIBXC] Refactor xc_domain_resume() into its own source file.

The idea is that this file is where we will have two implementations
of 'suspend cancellation': one which the guest is aware of (and is
faster) and the other which does more work to avoid requiring guest
modifications.

Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Move hvm get/set domctl() commands to arch/x86/domctl.c.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 18:04:00 +0000 (18:04 +0000)]
[XEN] Move hvm get/set domctl() commands to arch/x86/domctl.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAllow XS_INTRODUCE to be used for rebinding the xenstore evtchn.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 17:58:30 +0000 (17:58 +0000)]
Allow XS_INTRODUCE to be used for rebinding the xenstore evtchn.
Signed-off-by: Andrei Petrov <andrei.petrov@xensource.com>
19 years ago[XEN] Support VCPU reset via DOMCTL_setvcpucontext.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 17:55:29 +0000 (17:55 +0000)]
[XEN] Support VCPU reset via DOMCTL_setvcpucontext.
Signed-off-by: Andrei Petrov <andrei.petrov@xensource.com>
19 years ago[XEN] New event-channel reset operation.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 17:20:57 +0000 (17:20 +0000)]
[XEN] New event-channel reset operation.
Plumbed through libxenctrl to python.

From: Andrei Petrov <andrei.petrov@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd unsuspend hook for resuming devices in the checkpoint parent.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 16:11:31 +0000 (16:11 +0000)]
Add unsuspend hook for resuming devices in the checkpoint parent.

Nothing uses it at the moment.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoMake xen_suspend handle resume.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 16:06:09 +0000 (16:06 +0000)]
Make xen_suspend handle resume.

Don't destroy xenstore watches on suspend, and only recreate them when
resuming in a new domain. Likewise, only invoke frontend device resume
code when in a new domain (the resume functions all tear down the
existing function and wait for the backend to negotiate a new one,
which does not happen in the source domain).

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Add missing change for XS_RESUME.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 15:36:54 +0000 (15:36 +0000)]
[XEN] Add missing change for XS_RESUME.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxenstore: add XS_RESUME command; export it to xend.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 15:28:34 +0000 (15:28 +0000)]
xenstore: add XS_RESUME command; export it to xend.

This clears the shutdown flag for a domain in xenstore, allowing
subsequent shutdowns of the same domain to fire the appropriate
watches.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agoAdd resumedomain domctl to resume a domain after checkpoint.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 15:23:41 +0000 (15:23 +0000)]
Add resumedomain domctl to resume a domain after checkpoint.
Export resumedomain domctl to libxc, xend.

Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years ago[merge] with xen-unstable
Christian Limpach [Fri, 19 Jan 2007 15:11:44 +0000 (15:11 +0000)]
[merge] with xen-unstable

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>